Release 10.1A: OpenEdge Development:
Java Open Clients
ProDataRelationMetaData class
OpenEdge provides a Java class,
com.progress.open4gl.ProDataRelationMetaData, that allows you to specify and access the definition of a given data-relation. A single data-relation defines a relationship between a parentProDataObjectcollection and a childProDataObjectcollection within aProDataGraph. Thus, aProDataRelationMetaDataobject represents schema information that is defined as part of a correspondingProDataGraphMetaDataobject. To specify parent-child relationships, each data-relation names the column properties (fields) in parent and childProDataObjecttypes that form a primary-foreign key relationship between a given parentProDataObjectinstance and one or more childProDataObjectinstances.You can use a data-relation to retrieve child records related to the parent. A parent
ProDataObjectinstance (representing a single table row) contains a list of references to the related childProDataObjectinstances (representing one or more table rows). For a each data-relation, these references are represented in every parent row as a many-valued reference property in order to support multiple child rows. After you instantiate aProDataGraphand add allProDataObjectinstances, you can then call theProDataGraphsetChildTableReferences( ) method, which uses the specified key relationships to create all the child reference property lists in each parentProDataObjectas provided by the data-relations defined for theProDataGraph.A
Note: The requirement to map data-relations in aProDataGraphMetaDataobject can have multipleProDataRelationMetaDataobjects. EachProDataRelationMetaDataobject typically maps to a particular data-relation object in a corresponding Progress 4GL ProDataSet.ProDataGraphto data-relation objects in a ProDataSet depends on whether the ProDataSet parameter is static or dynamic and what the application service expects. For more information, see the information on preparing to pass parameters using different modes in the "Preparing and passing ProDataSets as ProDataGraph parameters" sectionThe
com.progress.open4gl.ProDataRelationMetaDataclass contains with the following constructors and methods.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |